Skip to content

#273 add test coverage reporting to PRs#292

Open
vancamti wants to merge 1 commit intodevelopfrom
feature/273_test_coverage
Open

#273 add test coverage reporting to PRs#292
vancamti wants to merge 1 commit intodevelopfrom
feature/273_test_coverage

Conversation

@vancamti
Copy link
Copy Markdown
Contributor

Summary

  • Switch backend.yaml trigger from push to pull_request and add a Code Coverage Report step using orgoro/coverage@v3.2 with thresholdAll: 0.8 and thresholdModified: 0.8.
  • Replace coverage run + Coveralls with pytest --cov=crabpy --cov-report=xml.
  • Add pytest-cov to the [dev] extras and regenerate requirements-dev.txt.
  • Exclude crabpy/gateway/crab.py via [tool.coverage.run] omit — the legacy SOAP CRAB gateway has no test suite today (25% covered) and would hide the real project coverage. Suggest tracking a follow-up issue to backfill its tests.

Coverage with the exclusion sits at 89% locally (125 tests).

Test plan

  • CI runs on this PR and the Code Coverage Report step posts a comment.
  • Both thresholds pass (local run: 89% overall).
  • Workflow no longer runs on pushes to non-PR branches.

Closes #273

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 24, 2026

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
1206 1075 89% 80% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: 240c6ff by action🐍

Switch the workflow trigger from push to pull_request and replace the
Coveralls upload with orgoro/coverage@v3.2 gating PRs on an 80% threshold
for both overall and modified lines. Exclude the legacy SOAP crab.py
gateway from coverage — it has no test suite and would skew the metric.

Add pytest-cov to the dev extras and regenerate requirements-dev.txt.
@vancamti vancamti force-pushed the feature/273_test_coverage branch from 12dd3bb to 240c6ff Compare April 24, 2026 10:43
@vancamti vancamti changed the base branch from master to develop April 24, 2026 10:43
@vancamti vancamti requested a review from roefem April 24, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add test coverage

1 participant